<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<title>会员中心</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="__STATIC__/libs/bui/css/bui.css">
		<link rel="stylesheet" href="__STATIC__/icon/icon.css">
		<link rel="stylesheet" href="__STATIC__/member/default/wapindex/index.css">
		<script src="__STATIC__/js/core/jquery.min.js"></script>		
		<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
	</head>
	<body>
<!--下面是钩子插件,做风格的时候尽量加上,方便扩展  -->
{:hook_listen('layout_member_body_head',$userdb,['webdb'=>$webdb,'info'=>$info],true)}

<!--控制是否固定头部的开关-->
{qb:tag name="wapmemberindex001set" type="myform" conf="member_style/default/member/index/wapmodel/set"}
	{if $_cfg.overflowY}
	<style type="text/css">html, body {overflow: auto;}</style>
	{php}define('ROLL_HEADER',true);{/php}
	{/if}
{/qb:tag}
{if defined('LABEL_SET')}
	<ul style="background:#eee;padding:10px;">
	控制是否固定头部的开关
	</ul>
	<style type="text/css">.p8label{left:60px !important;}</style>
{/if}
<!--控制是否固定头部的开关-->

<div class="{if !defined('ROLL_HEADER')}bui-page{/if}">
	
	<!--把底部菜单的碎片移动上面来,是避免在下面的话.找不到设置.被挡住了-->
	{qb:hy name="wap_memberindex003" where="index_style/default/index/footmenu" val="datas" type="labelmodel"}		
		{$datas}
	{/qb:hy}

    {if !defined('ROLL_HEADER')}<header>{/if}
        <div class="wrap-user-header">
		{qb:hy name="wap_memberindex001" val="datas" type="labelmodel"  where="member_style/default/member/index/wapmodel/head,headmoney"} {$datas} {/qb:hy}
        </div>
    {if !defined('ROLL_HEADER')}</header>{/if}
   
   <main {if defined('ROLL_HEADER')}class="rolltype"{/if}>
		{qb:hy name="wap_memberindex002" val="datas" type="labelmodel"  where="member_style/default/member/index/wapmodel/menu,alljifen,loginout"}
		{$datas} 
		{/qb:hy}        
    </main>

	<footer style="height:40px;"></footer>

	<!--
	 <footer>
        <ul class="bui-nav footer-nav">
		{volist name=":fun('page@foot_menu')" id="rs"}
            <li class="bui-btn bui-box-vertical {:strstr($rs['url'],'/member/index')?'active':''}" href="{$rs.url}">
                <i class="{$rs.style|default='glyphicon glyphicon-star'}"></i>
                <div class="span1">{$rs.name}</div>
            </li>
		{/volist} 
        </ul>
    </footer>
	-->
   
</div>

<div id="editmodes"></div>
<div class="fullbg"></div>
<script type="text/javascript">
var web_domain = "{:request()->domain()}";
var win_name = "member{:date('His')}";
</script>
{if in_wxapp()}
<script src="__STATIC__/js/jweixin.js"></script>
<script type="text/javascript">
var inWxapp = true;
</script>
{else /}
<script type="text/javascript">
var inWxapp = false;
</script>
{/if}
<script type="text/javascript" src="__STATIC__/js/qibo.js?86"></script>
<script src="__STATIC__/libs/bui/js/bui.js"></script>
<script src="__STATIC__/member/default/wapindex/index.js?33"></script>
<script type="text/javascript">
$(function(){
	$(".bui-box-vertical").each(function(){
		var obj = $(this);
		if(obj.attr('href') && obj.attr('href').indexOf('/member/msg/index')>-1){
			$.get("{:murl('member/wxapp.msg/checknew')}",function(res){
				if(res.code==0){
					if(res.data.num>0){
						obj.find('.bui-badges').html(res.data.num);	
						obj.find('.bui-badges').show();
					}
				}
			});
		}
	});
});
</script>

<!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->
{:hook_listen('layout_member_body_foot',$userdb,['webdb'=>$webdb,'info'=>$info],true)}

</body>
</html>